import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/Student.vue'

Vue.use(VueRouter)

const routes = [
    //在数组第一的位置是默认访问路径
  {
    path: '/', //访问路径
    component: () => import('../views/Login.vue')//对应的vue文件
  },
  {
    path: '/student', //访问路径
    component: () => import('../views/Student.vue')//对应的vue文件
  },
  {
    path: '/class',
    component: () => import('../views/Class.vue')
  },
  {
    path: '/ad',
    component: () => import('../views/Ad.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
